package com.wc.alorithm_blue_bridge._模拟.Q1371;

import java.util.Scanner;

/**
 * @Author congege
 * @Description
 * 回文判定
 * https://www.lanqiao.cn/problems/1371/learning/?page=1&first_category_id=1&sort=students_count&second_category_id=8
 * @Date Created in 2023/10/30-19:51
 */
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        String s = sc.nextLine();

        char[] chs = s.toCharArray();
        int len = chs.length;
        int left = 0;
        int right = len - 1;
        char yes = 'Y';
        char no = 'N';
        char ans = yes;

        while (left < right){
            if (chs[left]==chs[right]){
                left++;
                right--;
            }else {
                ans = no;
                break;
            }
        }
        System.out.println(ans);
    }
}
